<?php

define("dir",dirname(dirname(dirname(__FILE__)))."/");

require_once dir . "include/init.inc.php";

if (!App::isStaff())
{
	exit('No Dice!');
}

App::loadClass('file/File');
CFile::deleteRecursiveFolder(App::getParam('path').'file/templates_c');
CFile::deleteRecursiveFolder(App::getParam('path').'file/cache');
exit('Succesfully cleared cache dir.!');

?>